package model

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	GoodName  string  `gorm:"type:varchar(50);not null;index;comment:'商品名称'"`
	GoodPrice float64 `gorm:"type:decimal(10,2);not null;comment:'商品价格'"`
	GoodStock int     `gorm:"type:int;not null;comment:'商品库存'"`
	GoodStyle string  `gorm:"type:varchar(100);not null;comment:'商品类型'"`
}
